package com.bort.system.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bort.system.model.Category;
import com.bort.system.utils.Result;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

public interface CategoryService extends IService<Category> {
    Result<Page<Category>> getCategoryList(Page<Category> pager, Map<String, Object> map);

    int addCategory(Category category);

    Result upload(MultipartFile file);

    Result updateCategory(Category category);

    Result delete(Integer categoryId);

    Result<List<Category>> loadAllCategories(Map<String,Object> map);
}
